<template>
  <section class="jumbotron">
    <h3 class="jumbotron-heading">Search Github Users</h3>
    <div>
      <input v-model="keyWord" type="text" placeholder="enter the name you search" />
      <button @click="search">Search</button>
    </div>
  </section>
</template>

<script>
export default {
  name: "VueDemoIndex",
  data() {
    return {
      keyWord:""
    };
  },
  methods:{
    search(){
      this.$bus.$emit("getData",this.keyWord)
    }
  }
};
</script>

<style scoped>
</style>